<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Insert title here</title>
		<script type="text/javascript">
		<!--
			function validaCamposLogin(){
				var usuario = document.getElementById('usuario').value;
				var senha = document.getElementById('senha').value;
				var form = document.forms[0];
				form.action = '/pooII_2013.1/ServletLogin';
				if(usuario != '' && senha != ''){
					form.submit();
				}else{
					alert('verifique preenchimento dos campos');
				}
			}
		//-->
		</script>
	</head>
	<body>
		<form action="">
			Usuario<input type="text" name="usuario" id="usuario"><br>
			Senha<input type="password" name="senha" id="senha">
			<input type="button" onclick="validaCamposLogin()" value="Enviar">
		</form>
	</body>
</html>